package by.bsu.fami.greyscalecodefrontend.activities;

import android.app.Activity;

import by.bsu.fami.greyscalecodefrontend.activities.DecodeActivity.Mode;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import by.bsu.fami.greyscalecodefrontend.R;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void onOpenGalleryClick(View v) {
		Intent intent = new Intent(this, DecodeActivity.class);
		intent.putExtra(DecodeActivity.MODE, Mode.USE_GALLERY);
		startActivity(intent);
	}

	public void onOpenCameraClick(View v) {
		Intent intent = new Intent(this, DecodeActivity.class);
		intent.putExtra(DecodeActivity.MODE, Mode.USE_CAMERA);
		startActivity(intent);
	}

	public void onHelpClick(View v) {
		startActivity(new Intent(this, HelpActivity.class));
	}

}
